package com.hcz.service;

import com.hcz.mapper.UserMapper;
import com.hcz.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author hcz
 * @describtion TODO
 * @date 2019-06-21 12:38
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User getUser(Long id){
        return userMapper.selectByPrimaryKey(id);
    }
}
